package com.binance.notification.data.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.binance.master.annotations.DefaultDB;
import com.binance.notification.data.models.AlertPrice;

@DefaultDB
public interface AlertPriceMapper {

    int deleteByPrimaryKey(@Param("id") Long id, @Param("userId") String userId);

    int deleteByPrimaryKeyAndUserId(@Param("ids") List<Long> ids, @Param("userIds") List<String> userIds);

    int insert(AlertPrice record);

    int insertSelective(AlertPrice record);

    List<AlertPrice> selectByPrimaryKey(@Param("idList") List<Long> idList, @Param("userId") String userId);

    int updateByPrimaryKeySelective(AlertPrice record);

    int updateByPrimaryKey(AlertPrice record);

    List<AlertPrice> loadByUserId(String userId);
    
    List<AlertPrice> query(AlertPrice record);
    
    Long count(AlertPrice record);
}
